﻿using _064.App;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _064
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            //将文本框中的数据存入SqlData类型的变量udata中
            SqlData udata = new SqlData();
            udata.Name = textBox1.Text;
            udata.Code = textBox2.Text;
            new SqlDA().addData(udata);//调用添加数据函数，添加数据udata
        }
    }
}
